<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MainSite.Master"
    AutoEventWireup="true" CodeBehind="Bancos.aspx.cs" Inherits="ShoppingCart.WebSite.Admin.Bancos" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cpHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpContent" runat="server">
    <div class="block">
        <div class="block_head">
            <div class="bheadl">
            </div>
            <div class="bheadr">
            </div>
            <h2>
                Listado de Bancos</h2>
            <ul>
                <li><a href="Banco.aspx?Accion=I">
                    <img src="Style/images/add.png" alt="Agregar" />
                    Agregar Banco</a></li></ul>
        </div>
        <div class="block_content">
            <asp:UpdatePanel ID="upnActualizar" runat="server">
                <ContentTemplate>
                    <br />
                    <asp:GridView ID="gvBancos" runat="server" CellSpacing="0" CellPadding="0" Width="100%"
                        AutoGenerateColumns="False" AllowPaging="True" GridLines="None" EmptyDataText="No Existen Datos registrados."
                        OnRowCommand="GvBancosRowCommand" OnPageIndexChanging="GvBancosPageIndexChanging"
                        HorizontalAlign="Center">
                        <RowStyle BackColor="White" />
                        <EmptyDataRowStyle BackColor="#F0F0F0" HorizontalAlign="Center" />
                        <PagerStyle CssClass="pagination right" Height="20px" BackColor="White" />
                        <PagerSettings Mode="NumericFirstLast" PageButtonCount="10" />
                        <HeaderStyle BackColor="#F7F7F7" />
                        <AlternatingRowStyle BackColor="#F7F7F7" />
                        <Columns>
                            <asp:BoundField HeaderText="ID" DataField="IdBanco" />
                            <asp:BoundField HeaderText="NOMBRE" DataField="Nombre" />
                            <asp:BoundField HeaderText="DESCRIPCION" DataField="Descripcion" />
                            <asp:TemplateField HeaderText="OPCIONES">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lkbEditar" runat="server" CausesValidation="False" CommandName="Editar"
                                        CommandArgument='<%# Eval("IdBanco") %>'>
                                    <img src="Style/images/edit.png" alt="Editar" /> Editar</asp:LinkButton>
                                    |
                                    <asp:LinkButton ID="lkbEliminar" runat="server" CausesValidation="False" CommandName="Eliminar"
                                        CommandArgument='<%# Eval("IdBanco") %>' OnClientClick="javascript:return confirm('¿Esta seguro de eliminar Banco?')">
                                    <img src="Style/images/delete.png" alt="Eliminar" /> Eliminar</asp:LinkButton></ItemTemplate>
                                <ItemStyle Width="150px" />
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <asp:Literal ID="litMensaje" runat="server"></asp:Literal>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="gvBancos" EventName="RowCommand" />
                    <asp:AsyncPostBackTrigger ControlID="gvBancos" EventName="PageIndexChanging" />
                </Triggers>
            </asp:UpdatePanel>
        </div>
        <div class="bendl">
        </div>
        <div class="bendr">
        </div>
    </div>
</asp:Content>
